package com.mzz.structure.facade;

/**
 *
 * @author xushijian
 * @date 18/6/6 下午5:01
 */
public class Computer {

    private CPU cpu = new CPU();

    private Memory memory = new Memory();

    private Disk disk = new Disk();

    public void startup() {
        cpu.startup();
        memory.startup();
        disk.startup();
    }

    public void shutdown() {
        cpu.shutdown();
        memory.shutdown();
        disk.shutdown();
    }
}
